@extends('layout.admin.index')
@section('content')
<meta name="csrf-token" content="{{ csrf_token() }}">
<body>
<div class="panel admin-panel">
  <!-- 子菜单显示-数据库备份管理 -->
  <div class="panel-head" id="add"><strong><span class="icon-pencil-square-o"></span>{{ $title }}</strong></div>
  <div class="body-content"  style="margin:0 20px">

    <!-- 角色管理员添加开始 -->
    <form method="post" class="form-x" action="/admin/config/dodata" >  
    {{ csrf_field() }}
      <div class="form-group">
      </div>

      <div class="form-group">
        <div class="label">
          <label>备份路径：</label>
        </div>
        <div class="field">
          <input type="text" class="input w50" value="D:/wamp/www/shuma/laravel/public/web/data" name="data_path" required disabled="disabled" style="width:400px"/>
          <div class="tips"></div>
          <div style="color:#aac;margin-top:43px">(数据库备份路径)</div>
        </div>
      </div>
      <!-- 数据库用户名 -->
      <div class="form-group">
        <div class="label">
          <label>MySQL用户名：</label>
        </div>
        <div class="field">
          <input type="text" class="input w50" value="" name="data_name" id="data_name"/><font style="font-size:20px;color:red">*</font>
          <div class="tips"></div><br>
          <div style="color:#aac">(请输入登录MySQL的用户名)</div>
        </div>
      </div>

      <!-- 添加标题 -->
      <div class="form-group">
        <div class="label">
          <label>MySQL密码：</label>
        </div>
        <div class="field">
          <input type="text" class="input w50" value="" name="data_pass" id="data_pass"/><font style="font-size:20px;color:red">*</font>
          <div class="tips"></div><br>
          <div style="color:#aac">(请输入登录MySQL的密码)</div>
        </div>
      </div>
      <!-- 备份数据库名称 -->
      <input type="hidden" name="databases" value="shuma">

      <!-- 备份数据库路径 -->
      <input type="hidden" name="data_path" value="D:/wamp/www/shuma/laravel/public/web/data/">

      <!-- 备份数据库时间 -->
      <input type="hidden" name="data_time" value="{{ date('Y-m-d_H-i-s',time()) }}">
      <div class="form-group">
        <div class="label">
          <label></label>
        </div>
        <div class="field">
          <!-- <a href="javascript:;" class="button bg-main icon-check-square-o" onclick="func()"/>点击备份</a> -->
          <button type="submit"  class="button bg-main icon-check-square-o">点击备份</button>
          <a href="/admin/config/datalist"  class="button bg-main icon-mail-reply">&nbsp返回</a>
        </div>
      </div>
    </form>
    <!-- 角色管理员添加结束 -->
  </div>
</div>
</body>
@endsection